package o;

import android.util.Log;
import androidx.annotation.NonNull;
import java.io.File;
import java.nio.ByteBuffer;

public class uz implements ry<ByteBuffer> {
    public /* synthetic */ boolean ˋ(@NonNull Object obj, @NonNull File file, @NonNull sc scVar) {
        return ˎ((ByteBuffer) obj, file, scVar);
    }

    public boolean ˎ(@NonNull ByteBuffer byteBuffer, @NonNull File file, @NonNull sc scVar) {
        try {
            aam.ˊ(byteBuffer, file);
            return true;
        } catch (Throwable e) {
            if (!Log.isLoggable("ByteBufferEncoder", 3)) {
                return false;
            }
            Log.d("ByteBufferEncoder", "Failed to write data", e);
            return false;
        }
    }
}
